<template>
  <div :class="{'login-footer':true,'is-login-home':isLoginHome}">
    <p style="margin-bottom: 5px;">{{siteInfo.company}}</p>
    <p>{{siteInfo.copyright}}</p>
  </div>
</template>

<script setup>
/* eslint-disable */
import { useRouter } from 'vue-router'
import { ref, watch, computed, toRefs } from "vue";
const router = useRouter()
const isLoginHome = ref(router.currentRoute.value.path === '/login/index' ?  true :  false )
const { userInfo, QRcode, siteInfo } = toRefs(siteDevConfig)

watch(() => router.currentRoute.value,(newValue) => {
  newValue.path === '/login/index' ? isLoginHome.value = true : isLoginHome.value = false
})
</script>

<style scoped lang="scss">
  .login-footer{
    height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: $focusContent;
    p{
      color: $black;
      font-size: 14px;
    }
    &.is-login-home{
      background-color: rgba(0,0,0,0);
      p{
        color: $white;
      }
    }
  }
</style>
